﻿using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Text.Json.Serialization;
namespace BPM.Web.Shared.Data;

/// <summary>
/// 数据库表列
/// </summary>
public partial class TableColumnOuput : BaseVM
{
    /// <summary>
    /// 主键Id
    /// </summary>
    [DisplayName("业务号")]
    [Required(ErrorMessage = "业务号不能为空")]
    [JsonPropertyName("id")]
    public long Id { get; set; }

    /// <summary>
    /// 字段名
    /// </summary>
    [DisplayName("字段名")]
    [JsonPropertyName("columnName")]
    public string? ColumnName { get; set; }

    /// <summary>
    /// 数据库中类型
    /// </summary>
    [DisplayName("数据库中类型")]
    [JsonPropertyName("dataType")]
    public string? DataType { get; set; }

    /// <summary>
    /// .NET字段类型
    /// </summary>
    [DisplayName(".NET字段类型")]
    [JsonPropertyName("netType")]
    public string? NetType { get; set; }

    /// <summary>
    /// 字段描述
    /// </summary>
    [DisplayName("字段描述")]
    [JsonPropertyName("columnComment")]
    public string? ColumnComment { get; set; }

    /// <summary>
    /// 主外键
    /// </summary>
    [DisplayName("主外键")]
    [JsonPropertyName("columnKey")]
    public string? ColumnKey { get; set; }

}
